<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui"
>

<h:head>
	<title>Cancella Hotel</title>
</h:head>
<h:body>
<div id="spaziatura">
<full_page id="main">
<!-- 		HEADER -->
			<div>
						<img src="../resources/Images/Banner.png" id="bannerTop"></img>
			</div>
<!-- 		HEADER -->
<div>
						<img src="../resources/Images/Banner_piccolo.png" id="bannerBottom_sx"></img>
			</div>

			<div>
						<img src="../resources/Images/Logo_td_big.png" id="logoTD"></img>
			</div>

			<div>
						<img src="../resources/Images/Banner_piccolo_dx.png" id="bannerBottom_dx"></img>
			</div>
			
			<div>
						<img src="../resources/Images/Bg.png" id="background"></img>
			</div>
		
			<div>
						<img src="../resources/Images/hotelsil.png" id="minilogo_canc"></img>
			</div>

<!--TITOLO E SOTTOTITOLO-->
		<title_box>
		<title_TD>TravelDream</title_TD>
		</title_box>
		<!--FINE TITOLO E SOTTOTITOLO-->
		
		<box_login>
				<yellow_text id="topRightReg">Admin Section</yellow_text>
   		</box_login>
   		
<full_page id="demiPageSmall_c">
<!-- 	MENUBAR -->

	<p:menubar autoDisplay="false">
		
			<p:menuitem value="Crea pacchetto" url="CreaPacchetto.xhtml"/>
		
		<p:submenu label="Aggiunta Elementi">
			<p:menuitem value="Aggiungi Città" url="addCitta.xhtml"/>
			<p:menuitem value="Aggiungi Hotel" url="addHotel.xhtml"/>
			<p:menuitem value="Aggiungi Mezzo" url="addMezzo.xhtml"/>
			<p:menuitem value="Aggiungi Escursione" url="addEscursione.xhtml"/>
		</p:submenu>
		<p:submenu label="Modifica Elementi o Pacchetto">
			<p:menuitem value="Modifica Pacchetto" url="modPacchetto.xhtml"/>
			<p:menuitem value="Modifica Hotel" url="modHotel.xhtml"/>
			<p:menuitem value="Modifica Mezzo" url="modMezzo.xhtml"/>
			<p:menuitem value="Modifica Escursione" url="modEscursione.xhtml"/>
		</p:submenu>
		<p:submenu label="Cancella Elementi o Pacchetto">
			<p:menuitem value="Cancella Pacchetto" url="cancPacchetto.xhtml"/>
			<p:menuitem value="Cancella Hotel" url="cancHotel.xhtml"/>
			<p:menuitem value="Cancella Mezzo" url="cancMezzo.xhtml"/>
			<p:menuitem value="Cancella Escursione" url="cancEscursione.xhtml"/>
		</p:submenu>
			<p:menuitem value="Home Admin" url="index.xhtml"/>
	</p:menubar>
	
<!-- 	MENUBAR -->	
   		
<h:form id="formH" onsubmit="#{RetrieveHotel.myHotel()}" >
<p:growl id="growl" showDetail="true" sticky="true" />  
   <p:panel id = "CH"  header="Cancella Hotel"> 
    <h:panelGrid id="PPGrid" columns="3" role="presentation">
               
<!--      <p:pickList id="HotelList" value="#{RetrieveHotel.hotelDL}" var="String"    -->
<!--            itemLabel="#{hotelDL}" itemValue="#{hotelDL}">  -->
           
<!--     <p:column> -->
<!--             #{HotelDTO.nome} -->
<!--         </p:column>   -->
  
<!--             <p:column>   -->
<!--             #{HotelDTO.citta}   -->
<!--         </p:column>   -->
  
<!--     </p:pickList>    -->
       <p:selectCheckboxMenu id="ListaH" value="#{RetrieveHotel.hotelLSel}" label="Hotel" filter="true" filterText="Filter" filterMatchMode="contains" panelStyle="width:600px">  
           <f:selectItems value="#{RetrieveHotel.hotelL}" var="HotelDTO" itemLabel="#{HotelDTO.nome}" itemValue="#{HotelDTO.nome}">  
           </f:selectItems>
        </p:selectCheckboxMenu> 
                 
	</h:panelGrid>
	<br> </br>
	<button_selector id="bottomRight"><p:commandButton value="Cancella!" update="growl"  action="#{RetrieveHotel.CancellaH()}" >
	</p:commandButton></button_selector>
</p:panel>
</h:form>

</full_page>

</full_page>
</div>

<h:outputStylesheet library="css" name="css_rules_plain_links.css" />
</h:body>
</html>

